<?php
session_start();
include_once 'constant.php';
include_once LIBRARIES_TOOLS_PAGERBACKEND;
include_once LIBRARIES_TOOLS_PAGERFRONTEND;
    /**
     * Tự load tất cả Entity ra
     */
    foreach (glob(LIBRARIES. DS ."entities/*.php") as $filename)
    {
        include_once $filename;
    }
    foreach (glob(LIBRARIES. DS ."*.php") as $filename1)
    {
        include_once $filename1;
    }    
    if (isset($_SESSION['sUserID'])) {
        include_once ROOT . DS . "components/com_default/index.php";
    } else {
        include_once ROOT . DS . "components/com_login/index.php";
    }    
?>